-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nav bar codes #26
nav bar codes #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @rachelsitoh , when importing the navbars to index page, i get these errors, can you help to fix them? thx! |
|
Use the useClickAway hook for click away behaviour |
…TAS-12-nav-bar # Conflicts: # package.json # public/fintech_logo.png # public/material-symbols_close.png # public/person_logo.png # src/assets/css/App.css # src/routes/shared/TestPage.tsx # yarn.lock
const profileOptionsRef = useClickAway(() => { | ||
setShowProfileOptions(false); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rachelsitoh , I think the click behaviour feels kinda weird, could u change to dropdown on hover? so remove this clickaway hook and make it display on hover, should only need css, thx!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2a04a85
into
epic/DEV-4-shared-components-and-layouts
Pull Request
Description
Nav bar for desktop and mobile
Related Issues
[Reference any related issues that this pull request addresses or resolves.]
Checklist
Please review and check the following before submitting your pull request:
Desktop
Mobile
Additional Information
I assumed clicking on the profile logo will make the 'box' containing profile and sign out appear, and clicking it again will remove the 'box'. (For desktop, clicking on the white areas outside the header will make the 'box' disappear). lmk if any changes are needed. Also, I assume that clicking on the fintech logo will route to /